<%--
  Created by IntelliJ IDEA.
  User: l
  Date: 2023/6/23
  Time: 13:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人资料</title>
</head>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/person-data.css">

<body>
<div class="container">
    <form action="/shang/shang_updatePerson" enctype="multipart/form-data" method="post">
        <input type="hidden" name="file" value="${name.photo}">
    <div class="person-data">
        <!-- 头像 -->
        <div class="avatar">
            <img src="../upload/${name.photo}" alt="" class="avatar-img">
            <div class="change-avatar">
                <label for="fileInput">上传头像</label>
                <input id="fileInput" class="change" name="photo" type="file" style="display: none;" />
            </div>
        </div>
        <!-- 网名 -->
        <div class="netname">
            <p>昵称</p>
            <div class="change-netname">
                <input type="text" name="netname" maxlength="6" value="${name.netname}">
            </div>
        </div>
        <!-- 实名 -->
        <div class="name">
            <p>实名</p>
            <c:if test="${name.turename == null || name.turename.equals('')}">
                <input type="text" name="turename" placeholder="暂未实名" maxlength="6" value="">
            </c:if>
            <c:if test="${name.turename != null && !name.turename.equals('')}">
                <input type="text" readonly name="turename" maxlength="6" value="${name.turename}">
            </c:if>
        </div>
        <!-- 卡号 -->
        <div class="card">
            <p>卡号</p>
            <input type="text" name="bankCard" value="${name.bankCard}">
        </div>
    </div>
    <div class="done"><input class="done" type="submit" value="确认"></div>
    </form>
</div>
</body>
</html>